]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
magnifier: Make magnification factor changes animatable
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 6 Feb 2020 13:21:14 +0000 (14:21 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 7 Feb 2020 17:18:25 +0000 (18:18 +0100)
So we can seamlessly change between them through eg. keybindings.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/984

js/ui/magnifier.js

index 2cb398455080f7f03b933799d650cbc7b880f977..844a1506cd575bf92712e376af13e0e3856386e1 100644 (file)
@@ -875,7 +875,8 @@ var ZoomRegion = class ZoomRegion {
     setMagFactor(xMagFactor, yMagFactor) {
         this._changeROI({ xMagFactor,
                           yMagFactor,
-                          redoCursorTracking: this._followingCursor });
+                          redoCursorTracking: this._followingCursor,
+                          animate: true });
     }
 
     /**